/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ez2find.manager;

import com.ez2find.model.Area;
import com.ez2find.model.Community;
import com.ez2find.model.CommunityCategorie;
import com.ez2find.model.RegisterUser;
import com.ez2find.model.Site;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Owner
 */
@Local
public interface CommunityManagerLocal {

    void create(Community community) throws Exception;

    void delete(Community community) throws Exception;

    Community find(long id);

    long lastCode();

    List<Community> listAll();

    List<Community> listCommunitisArea(Area area, boolean communityC, CommunityCategorie communityCategorie, String consult);

    List<Community> listCommunitisSite(Site site, boolean communityC, CommunityCategorie communityCategorie, String consult);

    Community merge(Community community) throws Exception;

    void update(Community community) throws Exception;
    
}
